<?php

	$Values = substr($_POST['cpl_Selected'],0,strlen($_POST['cpl_Selected'])-1);

	if($GLOBALS['MYT']->db_query("UPDATE facturas_pbc SET frp_FraID = 0, frp_PbcID = 0 
                WHERE frp_FraID IN ($Values) AND frp_PbcID = {$_GET['AMPID']}")==true) {

	echo '<script charset="utf-8" type="text/javascript">
            replaceUrl(\'row'.$_GET['AMPID'].'\',\'_response/call.php?get=Compliance/pbcproc&AMPID='.$_GET['AMPID'].'\');
                </script>';
	}
?>